﻿using AiQiuQuan.Sport.Model.Enums;
using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 用户会员卡分页参数
    /// </summary>
    public class VenueUserCardPageRequestDto : PageRequest
    {
        /// <summary>
        /// 场馆卡套ID
        /// </summary>
        public Guid? CardId { get; set; }

        /// <summary>
        /// 电话/会员编码
        /// </summary>
        public string? Key { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid? UserId { get; set; }

        /// <summary>
        /// 用户会员卡状态：0全部、1使用中、2已过期
        /// </summary>
        [Required]
        [EnumDataType(typeof(UserCardStateEnum), ErrorMessage = "0全部、1使用中、2已过期")]
        public UserCardStateEnum UserCardState { get; set; }
    }
}
